import textHandler from './text-handler'
/**
 * 统一对外暴露
 */
const handlerMethods = {
    textHandler
}

// info.type -- 组件名称
const getComponent = (info,attribute,data) =>{
    let component =  handlerMethods[info.type](attribute,data)
    component.info = info
    return component
}


export default getComponent